/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package POJO;

/**
 *
 * @author kimloan
 */
public class RapPOJO {
    
    //<editor-fold defaultstate="collapsed" desc="1. Thuộc tính">

    private int maRap;
    private String tenRap;
    private String diaChi;
    private int soLuongPhong;
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="2. Phương thức getter/setter">

    public String getDiaChi() {
        return diaChi;
    }

    public void setDiaChi(String diaChi) {
        this.diaChi = diaChi;
    }
    public int getMaRap() {
        return maRap;
    }

    public void setMaRap(int maRap) {
        this.maRap = maRap;
    }

    public int getSoLuongPhong() {
        return soLuongPhong;
    }

    public void setSoLuongPhong(int soLuongPhong) {
        this.soLuongPhong = soLuongPhong;
    }

    public String getTenRap() {
        return tenRap;
    }

    public void setTenRap(String tenRap) {
        this.tenRap = tenRap;
    }

    //</editor-fold>
    
    //<editor-fold defaultstate="collapsed" desc="3. Phương thức khởi tạo mặc định">
    public RapPOJO() {
        this.maRap = -1;
        this.tenRap = "";
        this.diaChi = "";
        this.soLuongPhong = 0;

    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="4. Phương thức khởi tạo đầy đủ tham số">
    public RapPOJO(int id, String tenrap, String diachi, int soluongphong) {
        this.maRap = id;
        this.tenRap = tenrap;
        this.diaChi = diachi;
        this.soLuongPhong = soluongphong;
    }
//</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="5. Phương thức khởi tạo sao chép">
    public RapPOJO(RapPOJO rp) {
        this.maRap = rp.maRap;
        this.tenRap = rp.tenRap;
        this.diaChi = rp.diaChi;
        this.soLuongPhong = rp.soLuongPhong;
    }
//</editor-fold>
}
